package com.chen.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * @Author Chen
 * @Date 2024/12/3 18:30
 */
@ApiModel(description = "地址")
@TableName("address")
@Data
public class Address {
    // 如果 address 类没有 id 可以自动补充 id
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("收货人")
    private String name;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("所在地区")
    private String address;

    @ApiModelProperty("详细地址")
    private String addDetail;

    @ApiModelProperty("地址状态")
    private Integer status;  //默认为0
}
